import request from '../request.js'

const api = {

  //歌曲数据
  musicData () {
    return request({
      url: '/sys/data/music',
      method: 'get'
    })
  },

  //歌手数据
  artistData () {
    return request({
      url: '/sys/data/artist',
      method: 'get'
    })
  },

  //同步数据
  syncData () {
    return request({
      url: '/sys/data/sync',
      method: 'get'
    })
  },

  //歌曲家列表
  musicArtistList (params) {
    return request({
      url: '/sys/musicArtist/list',
      method: 'post',
      data: params
    })
  }
}

export default api